package com.xuecheng.content.service;

import com.xuecheng.content.model.dto.BindTeachplanMediaDto;
import com.xuecheng.content.model.dto.SaveTeachplanDto;
import com.xuecheng.content.model.dto.TeachplanDto;
import com.xuecheng.content.model.po.TeachplanMedia;

import java.util.List;

/**
 * @author Mr.M
 * @version 1.0
 * @description 课程基本信息管理业务接口
 * @date 2022/9/6 21:42
 */
public interface TeachplanService {
    /**
     * @param courseId 课程id
     * @return List<TeachplanDto>
     * @description 查询课程计划树型结构
     * @author Mr.M
     * @date 2022/9/9 11:13
     */
    public List<TeachplanDto> findTeachplanTree(long courseId);

    /**
     * @description 只在课程计划
     * @param teachplanDto 课程计划信息
     * @return void
     * @author Mr.M
     * @date 2022/9/9 13:39
     */
    public void saveTeachplan(SaveTeachplanDto teachplanDto);

    /**
     * @description 根据课程计划id删除课程计划
     * @param id 课程计划id
     * @return void
     * @author hand4j
     * @date 2023/3/14 16:42
    */
    public void deleteTeachplanById(Long id);

    /**
     * @description 根据课程id删除课程计划
     * @param courseId 课程id
     * @return void
     * @author hand4j
     * @date 2023/3/14 16:42
     */
    public void deleteTeachplanByCourseId(Long courseId);

    /**
     * @description 课程计划向上移动
     * @param id 课程计划id
     * @return void
     * @author hand4j
     * @date 2023/3/14 17:54
    */
    public void moveUpTeachplan(Long id);

    /**
     * @description 课程计划向下移动
     * @param id 课程计划id
     * @return void
     * @author hand4j
     * @date 2023/3/14 17:54
     */
    public void moveDownTeachplan(Long id);

    /**
     * @description 教学计划绑定媒资
     * @param bindTeachplanMediaDto
     * @return com.xuecheng.content.model.po.TeachplanMedia
     * @author Mr.M
     * @date 2022/9/14 22:20
     */
    public TeachplanMedia associationMedia(BindTeachplanMediaDto bindTeachplanMediaDto);

    /**
     * @description 教学计划解除绑定媒资
     * @param teachPlanId 课程计划标识
     * @param mediaId 媒资文件id
     * @return void
     * @author hand4j
     * @date 2023/3/25 23:20
    */
    public void deleteAssociationMedia(Long teachPlanId, String mediaId);
}